#ifndef _UTIL_H_
#define _UTIL_H_ 1


#include "instruct.h"
#include "register.h"
#include "def.h"

int loadCode(char*fileName,char*data);
int print(Register*R);
int sleep(Register*R);
int gpio(Register*R);
//获取参数个数
int getParamSize(Register*R);

/***
*index 参数下标，从0开始
*
*/
char*getStringParam(Register*R,int index);

int getIntParam(Register*R,int index);
char getCharParam(Register*R,int index);



#endif



